import Vue from 'vue'
import Vuex from 'vuex'
import order from './module/order.js'
Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		ALL_TYPE:{},
        ORDER_INFO:{},
		ALL_CHANNEL:{},
		Location_setOut:{},
		Location_arrive:{},
		Polyline:[],
		distributionCode:'',
		afterloginUrl:'',
		
	},
	mutations: {
        SET_ALL_TYPE(state,e){
            state.ALL_TYPE = e
        },
        SET_ORDER_INFO(state,e){
            state.ORDER_INFO = e
        },
		SET_ALL_CHANNEL(state,e){
		    state.ALL_CHANNEL = e
		},
		SET_Location_setOut(state,e){
			state.Location_setOut=e
		},
		SET_Location_arrive(state,e){
			state.Location_arrive=e
		},
		SET_Polyline(state,e)
		{
			state.Polyline=e
		},
		SET_DistributionCode(state,e)
		{
			state.distributionCode=e
		},
		SET_afterloginUrl(state,e)
		{
			state.afterloginUrl=e
		}
		
	},
    modules: {
        order:order
    }
})

export default store
